Support const functions

Currently async and extern are the only support function qualifiers. It would be nice of const was supported as well so we can generate const functions.