Make sure stage struct subelements are resource types.

This should fix most of #208.