While there is no public API, and you should indeed open an enhancement request with Apple at https://bugreport.apple.com, here is some Leo magic for you:
https://gist.github.com/LeoNatan/9532361
Put this anywhere in your code and voilà, shapes are enabled. Delete to disable shapes. Remember not to ship app using this code as it will be rejected by Apple.