doh! don't double-increment the bracket count for embedded references