add some fixes and features

 - fix timezones
 - add caching
 - add yday, isdst
 - add a sanity check for timelocal, timegmt
 - fix scalar/list results