fix rounding issue in n_components

Unfortunately I can't remember the details of where this bug arrises, but the `int()` cast in this PR fixes a serialisation bug in PCA. Secondly, I move `_n_components` to `_n_active_components` which is clearer in it's meaning.