Various fixes to manage resources.

Fixes the display if there are no resource types, creating
multiple resources, moving unselected resources, types of created
resources, and maybe some other small things.