Fixes compiler and runtime errors. Hacks kickdecider to be able to use lab field.
Merge remote-tracking branch 'origin/behaviors' into behaviors