Fix query parameter in tags

First solution broke the default way that tags work (by passing in an array). After this fix tags with arrays and tags with (ajax) callbacks will work.