fixed bug where props of type wasn't preserved in copy; impacted constructor code gen