More beautification of the select-related generated code

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>