Fix ordinal scales that stopped working after D3 3.3.x update.