Prevent circular structure errors when logging $scope

Fixes #8