fix gob interface handling
fix nil map panic
Merge pull request #2 from lukechampine/pos

Fix more encoding issues