define allocation method for Time class; close #1474
check d->type before accessing d->type->dfree; #1474 #858
Merge branch 'master' of github.com:mruby/mruby