Fix warning in gem spec.
Allow parameter name aliasing in set_params. Includes unit test.
Reduce cyclomatic complexity so CodeClimate won't complain :)