Static pickler should not attempt to pickle non-existing fields

In static pickler, don't attempt to pickle a private field that
is not one of the declared fields according to Java reflection.

Also adds another test.