Allow an array of possible types. Fixed bug where Ruby would segfault if safety_check was called twice on the same method.