Move structs to internal header
Update tests to not look for internal state
Implement move to internal structure and correct some tests
Merge changes that move internals to opaque structure

Move members from the ptab struct to the ptab_internal struct,
which will be hidden from the user