serveral hack fixes, remove types from offset* functions due to https://github.com/hhvm/hack-hhvm-docs/issues/192