Improve attributesForProperty: documentation

Actually explain how to use it and add an example.

@alazier @jpsim