Make context available statically instead of passing through PollSensor-related constructors
Fix readExternal and writeExternal