Piston fixes

* Fixes #879
* Fixes #714
* Hopefully fixed piston duplication issues reported by @STRWarrior in http://forum.mc-server.org/showthread.php?tid=1247&pid=12608#pid12608