Allow and apply Trait variables in RAML

The Parser throws warnings when the trait is included with variable parameters.

Example (Expandable note will generate PHP warning)
```
          is:
            - LocationBased
            - Expandable: {example: "minutes", on: "minutes, location"}
```

Fixed and also implemented a basic variable replacement function.