Implemented trapped chests & others

+ Added trapped chests
* Fixed a bunch of bugs in the redstone simulator concerning wires and
repeaters
* Other potential bugfixes

I hereby present to xoft, ONE METRIC TON PRECISELY -----------------
-------------------------------  of code to review.

With thanks.
As in use an overload, one of which takes two chances and one one. The common code could be placed in a helper. The current code is even more confusing to read.