Added Double type (not Double editor); reworked some factory code