Added HasPartModule parameter.
New PartModuleUnlocked requirement.
Added HasResource parameter.
Fixed edge cases for HasResource.