Add non-compiling "unclosed class with manual pickler" test

If there's a pickler in scope, we should never run the check
for whether we can generate a static pickler.