Allow resource sections to be accessed by a human readable type. Also fix tests.