Fixed NPE for key value (fixes #138)
Using interface instead implementation, for ParsedSql ctor