Fixed wrong type being set during setItemTypes and setBlockTypes.

BlockTypes should now be populated correctly.