On the restricted Hilbert-Speiser and Leopoldt properties