On Compact Affine Quaternionic Curves and Surfaces