Changed /e modifier to preg_replace_callback to avoid deprecation warnings

As of PHP 5.5 /e is deprecated. PropertyPath now has updated code, so changed this class too.