Fixed search attrs handling
Various fixes
Made the thing unicode-capable and fixed single-valued attribute access