Fixed cut and paste of splines

Re-worked the way factories work when allocating entities. If the entity
data is null, the factory is expect to allocate entity data for the
entity.
Parent child protection.