Fixed #891

Better messages when JSON-related assertions receive invalid JSON.
Fixed #889

Suppress `open_basedir` warnings while searching for the composer autoloader.
Merge branch '3.7'