[fix] Allow anonymous functions in states declaration hash