Support PTS to int conversions.  Fixes #16.
Don't crash the compiler for shared array initialization.  Fixes #22.