YCP AST: Centralize compiling when whitespace is kept

All statement sequences that we want to compile with whitespace kept are
now compiled using a single function. This will allow us to tweak the
behavior at one place.
Remove whitespace before the first/after the last statement

This prevents some ugly empty lines.