always add core types to default imports so they are available from macros (closes #3131, closes #3154, see #1904)