Add .idea/ and temp~ files to .gitignore
Fix scope without_. This scope erasestate_machine 'without_state' and return items with NULL state.