added ability for substitute aliases when mapping in YAML is of inline type

At present parser only substitutes aliases when mapping is a multi-line.
When the alias is used in the mapping stored in a sigle line alias substitution doesn't work.

So I modify Parser to improve/fix it.