Fix block type name parsing when adding new block and when creating css class for container div