allow name/value pairs (without hashref) in new

With the new Perl sub in front of the XS constructor, it becomes easier
to give the user some options like this.
Merge pull request #3 from preaction/constructor-options

Constructor options