Assorted native API fixes
Towards working percolator in the native client