Hello Jason. 

You did a great job, i made one commit with minor issues i faced with AGS layer with {esriOptions: true}. If you don't mind i will commit what i faced with, hope it helps, because you helped with this library so much to others

for arcgis when {esriOptions: true}
- no reference exception
- early Query which is not right and don't needed