Further work on WgStraightList.
Some refactoring, bugfixes and stuff.

Signed-off-by: unknown <tord.jansson@gmail.com>