Handlebars dot-separated path with segment-literal notation

Correctly parse out segment-literal notations in Handlebars expression paths such as `articles.[10].[#comments]` documented on http://handlebarsjs.com/expressions.html