Dynamically generate _bemFields map, fix bug in hasBemFields method