Undefined values for basic types (string, number, ...) should be `undefined` instead of `null` (you can  cherry-pick https://github.com/fredj/ol3/commit/e1793f7e981dbc23d2a96f2e828b92c44bde443d)