Fixes for Gmod 13

Fixed stuff for gmod 13, works fine in current version now.
Added support for non-folder entities and weapons which was introduced
in gmod 13.