Debug PseudoConstant
In regards to the first one its a little bit misleading the actual thing is another function has been marked as deprecated and calls to that function should be refactored to use CRM_Core_PseudoConstant::getKey this is the related issue  https://issues.civicrm.org/jira/browse/CRM-20424

In regards to the 2nd issue i have opened a ticket here https://issues.civicrm.org/jira/browse/CRM-20939 and submitted a pull request here https://github.com/civicrm/civicrm-core/pull/10721 to fix the issue.

If you can it would be helpful if you could add a ticket on the first issue in the JIRA and reference CRM-20424 in the ticket. 

Seamus