Handel assert for missing node kind in isDeclarationVisible for functionType and constructorType

Fix for #1288, by adding missing node kinds to the switch statement and test cases.