Infinite-dimensional necklace Lie algebras and some finite-dimensional important subalgebras