Fix bemjson generation

closes #44