Implement Entity.local

Add a .local map-like interface to Streamy entities (raw and generated), and associated test cases.