Add parameters, document and components to path listeners

getPath was able to receive components in its path but path change listeners weren't.
This adds parameters, document and components as optional parameters of *PathChangeListener functions.
Merge pull request #1389

Add parameters for path and range at path change listeners.