PR for 1.0.13

Reworked eval snippets/plugin functions and MODX error level detection.
Fixed some NOTICE errors in Ditto.