Added decidability check for type instances