Added kwParams to hashcode in function type and fixed equality for KW initializer

improving speed for #621