Yaron and I observed a problem with template parameters handling within <ask> queries in SMW 1.0 RC1.
Basically they don't get expanded.
I've created a bug in MediaZilla for that:
Same problem exists within template rendering when template is used as format for querying. Luka's patch doesn't help with it.