Fix #1116: Several method existence checks don't deal with visibility