Modules with > 1 function didn't return the function correctly. Also fix coding convention issues [ROCm/clr commit: 09df0977c0]
09df0977c0