ugtrain/libmemhack: support upto four stack offsets

This way multiple code locations from which an interesting object
is allocated are supported. E.g. Warzone 2100 has three different
locations for the Droid class.