allow passing not-objects into register and updated check-types to the latest version