SQLite, composition, sorting and optimizations

- ADD: started to implement local SQLIte database feature
- ADD: ComposeExportedValue() helper method for exporting value for a
specific type
- ADD: Sort() helper and extension methods
- ADD: DelegateComparer<T>
- CHG: optimized Cast() helper method
- ADD: types for compatibility with older target frameworks