v0.4.1 toJSON(): filter recursively. Fixes #3