fix multiple constants declaration

constant.pm expects multiple constants to be passed
in a hashref, not a plain list
with this commit all examples from POD now work