Max string length checks for gates
Max string length checks for gates

Add sane maximum length check for certain operations. The system cannot handle arbitrarily big operations.
thegrb93/wire,NezzKryptic/Wire,Grocel/wire,garrysmodlua/wire,bigdogmat/wire,wiremod/wire,dvdvideo1234/wire,sammyt291/wire