Supress warnings about accessing weak properties when specifying key-paths