Use ultisnips instead of snipmate.

Snipmate has trouble with expanding snippets withing snippets.
UltiSnips seems to be much better, easier to edit snippets,
works very well.