handle attributes for non-immediate types first

Slices are non-immediate and were not having these attributes applied.