fix compile error

Do not explicitly instantiate matrix and vector. All members
are inlined, so we dont benifit from extern templates. Also,
disabling explicit instantiation works around the bug of gcc
that default constructor wont be emitted.