Accept an optional UTC offset for Time#getlocal.

This fixes JRUBY-7130.
Also introduce a few argument checks for the UTC offset value.