Fixing JS issue where duplicating a field will not remember the sub field types

Signed-off-by: Elliot Condon <e@elliotcondon.com>