Allow resource files with empty objects. Fix debug menu bugs.