Promise constification.

A couple of leftovers from pull #1174.