Allow for generic pointers in dictionaries

So we don't need separate code for the various pointers.
We just use a "generic pointer" entry
Correctly decode abinary
Use new generic pointer type
Remove PW_FLAG_LONG.  It's no longer used
Fix vp2data encoding

The old code worked, but was arguably wrong.
More sanity fixes for encoder / decoder