Fixed #99
Use slice instead of regex as per @xaka suggestion
Merge pull request #101 from raml-org/bugs/handle-optional-parameters-in-merge

Fixed #99