Reworked the reslist parsing code to read resource types from tags.