Move is_doc parameter from common.generate to DocGenerator class
Centralize bindings name information in get_bindings_name method
Fix typo
Support bindings specific text substitutions in API documentation

Use it to display array examples correct in PHP for now.

Also remove calls to handle_rst_if() because the :if: construct isn't
used anymore.