Reverse-sorted var keys fixes #21

- Sort passed variable keys
- Traverse keys in reverse-order
- Longer key names are encountered first, thus removing disambiguation
between 'title' and 'title_link', as mentioned in the issue report
- Added tests to demonstrate functional improvement