Set hasSubtypes. Added sanity check for recipe addition.