#350 public __sleep() results in BadMethodCallException