Inline stuff and don't call through to the FFI for many properties.

r? @metajack