Provide flagDecoder before final setup of program
Provide flagDecoder before final setup of program

Also check that flagDecoder is defined if the program was created with
programWithFlags.

martinos/core,martinos/core