Fix bug causing HttpEnvelope to have an unset request reference. Fix bug when loading a resource with dependencies causing host arg to get dropped from argument list passed to resource function.