fix brackets within dimensions
add 2 failing tests
add support for nested brackets