TextField fixes, plus non-smoothed bitmap fills

Includes a real implementation of TextField#getLineMetrics, various correctness fixes, and some plain bug fixes. And Tests.