Change hash_hmac to accept all types for the second argument

and automatically cast it to a string before hashing, as Zend does

I verified that zend exhibits the exact same behavior.