From reg fix

This PR fixes a bug in ```DimCoord.from_regular``` that causes it to fail if called with ```with_bounds=True``` (spotted by @marqh).