Compatibility with pwf-1.6

pwf.js has dropped Array.prototype.unique definition, so we have to work
with that
DRYing code
Version bump, 0.2.0