Hack to make document+embedded document inheritance not use __proto__