singletons have to prune item types to something JSON-friendly before sending them to the browser too. Fixes crash.