ENH: Enforce correct transform type and size