retain type when inlining array (closes #3446)