Add tests for getting constants from instances.
Implement getting constants from objects.
Update documentation for constant()
Fix doc block for twig_constant.
relaxed globals management to avoid a BC break (closes #965)
merged branch markstory/object-constants (PR #961)

This PR was merged into the master branch.

Commits
-------

8bb953c Fix doc block for twig_constant.
c7dafb7 Update documentation for constant()
cb921ce Implement getting constants from objects.
998b367 Add tests for getting constants from instances.

Discussion
----------

Object constants

Implement the changes discussed in #954.
tweaked previous merge
prepared the 1.12.1 release
bumped version to 1.12.2-DEV