I believe I have a fix for the crash part of this bug report that will go in the next update. The cube-activated gate being generally buggy is mostly unrelated and I'm going to rewrite that script as well