[DDMD] [refactor] Move FuncDeclaration::buildClosure and TypeFunction::retStyle into free functions

@ibuclaw