AppKit: converted floats to CGFloat where necessary

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
NibTest: fixed some issues

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>