Fixed syntax errors + started making resource pack mechanisms more robust. ResourceData::alias is now guaranteed to be either a valid alias or ResourceData::path
Commenting + made createErrorResource more robust