Cleanup stat_accum_input Flush() implementation

+ prepare code for setting custom namespaces